<div id="tabs">
	<ul>
        <li id="current"><?php echo $this->Html->link(__('Danh sách các môn học', true), array('controller'=>'mons','action' => 'index')); ?></li>
        <li><?php echo $this->Html->link(__('Thêm môn học', true), array('action' => 'add')); ?></li>
	</ul>
 </div>

<div class="mons index">
	<h2><?php __('Ds Môn Học');?></h2>
	<table cellpadding="0" cellspacing="0" id="tables">
	<tr>
			<th><?php echo $this->Paginator->sort('STT');?></th>
			<th><?php echo $this->Paginator->sort('Mã Môn Học');?></th>
			<th><?php echo $this->Paginator->sort('Tên Môn Học');?></th>
			<th><?php echo $this->Paginator->sort('Số Tiết LT');?></th>
			<th><?php echo $this->Paginator->sort('Số Tiết TH');?></th>
			<th><?php echo $this->Paginator->sort('Số TC');?></th>
			<th class="actions"><?php __('Lựa chọn');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($mons as $mon):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $mon['Mon']['id']; ?>&nbsp;</td>
		<td><?php echo $mon['Mon']['mamom']; ?>&nbsp;</td>
		<td><?php echo $mon['Mon']['tenMon']; ?>&nbsp;</td>
		<td><?php echo $mon['Mon']['soTietLT']; ?>&nbsp;</td>
		<td><?php echo $mon['Mon']['soTietTH']; ?>&nbsp;</td>
		<td><?php echo $mon['Mon']['soTC']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Các lớp học phần', true), array('controller'=>'lophps','action' => 'index', $mon['Mon']['id'])); ?>
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $mon['Mon']['id'])); ?>
			<?php echo $this->Html->link(__(' Xóa ', true), array('action' => 'delete', $mon['Mon']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $mon['Mon']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Trước', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Sau', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<!--<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Thêm Môn Học', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Latqs', true), array('controller' => 'latqs', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Latq', true), array('controller' => 'latqs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Ds Lớp HP', true), array('controller' => 'lophps', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Lophp', true), array('controller' => 'lophps', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Môn Chuyển Đổi', true), array('controller' => 'moncds', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Moncd', true), array('controller' => 'moncds', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Monthamgiamauks  ', true), array('controller' => 'monthamgiamauks', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Monthamgiamauk', true), array('controller' => 'monthamgiamauks', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Monthamgianhoms  ', true), array('controller' => 'monthamgianhoms', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Monthamgianhom', true), array('controller' => 'monthamgianhoms', 'action' => 'add')); ?> </li>
	</ul>
</div>-->